#include "isPowerOfTwo.h"
bool isPowerOfTwo(int n) {
  if (n == 0)
    return false;
  else {
    long bus = static_cast<long>(n) - 1;
    return (n & bus) == 0;
  }
}